package com.tianji.learning.task;

import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class DemoTask {

    @XxlJob("demoTaskHandler")
    public ReturnT<String> demoTaskHandler(){
        log.info(" hello xxljob ");
        return ReturnT.SUCCESS;
    }

}
